package org.fnzn.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.fnzn.bean.SysDic;
import org.fnzn.core.Result;

public interface SysDicService {
	/**
	 * 根据父id查找所有子集
	 * @param parentId
	 * @return
	 */
	int save(SysDic sysDic);
	Result finSysDicByParentId(String parentId);
	Result querySysDicTree();
	Result updateSysDic(SysDic dic);
	Result deleteSysDic(SysDic sysdic);
	Result saveSysDic(HttpServletRequest request,List<SysDic> list);
	List<SysDic> querySysDicById(String parentId);
	/**
	 * 根据主键查找
	 * @param dic
	 * @return
	 */
	SysDic selectDic(SysDic dic);
	/**
	 * 查找下层子集
	 * @param parentId
	 * @return
	 */
	List<SysDic>  selectDic(String parentId);


    List<Map<String, Object>> getDicByDicType(String dicType);
}
